home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / Runimage / Delphi50 / Demos / ToolsAPI / Editor Keybinding / bufferlistform.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-08-11  |  581 b   |  31 lines

  1. unit BufferListForm;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TBufferListFrm = class(TForm)
  11.     BufferListBox: TListBox;
  12.     OKButton: TButton;
  13.     CancelButton: TButton;
  14.     procedure BufferListBoxDblClick(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. implementation
  22.  
  23. {$R *.DFM}
  24.  
  25. procedure TBufferListFrm.BufferListBoxDblClick(Sender: TObject);
  26. begin
  27.   if BufferListBox.ItemIndex > -1 then ModalResult := mrOK;
  28. end;
  29.  
  30. end.
  31.